import Vue from'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
const store = new Vuex.Store({  
    state: {  
        popupLogin: false, // 登录蒙层是否显示
        token: uni.getStorageSync(`${uni.getStorageSync("envVersion")}Token`), // token是否存在
        shareUuid: '', // 分享人id
    },  
    mutations: {  
        login(state, provider) {  
            console.log(state)  
            store.popupLogin = state
            // console.log(provider)  
            // state.login = true;   
            // state.userName = provider.userName;  
            // state.avatarUrl = provider.avatarUrl;  
        },  

    }  
}) 
export default store